<?php /* Smarty version 2.6.14, created on 2015-01-14 18:23:38
         compiled from push.index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'push.index.html', 11, false),array('modifier', 'date_format', 'push.index.html', 50, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<table border="0" class="search" cellspacing="0" id="search">
   	<tr>
    	<td class="searchlogo">&nbsp;</td>
		<td><?php echo $this->_tpl_vars['systemLang']['chooseGame']; ?>

			<select name="s[game_id]" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['chooseGameRequeire']; ?>
" >
				<option value="-1"><?php echo $this->_tpl_vars['systemLang']['all']; ?>
</option>
                <option value='0'><?php echo $this->_tpl_vars['systemLang']['platform']; ?>
</option>
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['games'],'selected' => $this->_tpl_vars['search']['game_id']), $this);?>

            </select>
                    <?php echo $this->_tpl_vars['systemLang']['chooosePlatform']; ?>

			<select name="s[platform]" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['chooosePlatform']; ?>
" >
				<option value=''><?php echo $this->_tpl_vars['systemLang']['chooosePlatform']; ?>
</option>
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['platform'],'selected' => $this->_tpl_vars['search']['platform']), $this);?>

            </select>
            <input type="button" class="button" name="ng" onclick="submitform('<?php echo @BASEURI; ?>
push/index',false)" value="<?php echo $this->_tpl_vars['systemLang']['sure']; ?>
" />
        	&nbsp;&nbsp;<a href="/push/index"><?php echo $this->_tpl_vars['systemLang']['clearSearch']; ?>
</a>
        </td>
    </tr>
</table>

<table width="100%" border="0" class="adminlist" cellspacing="0">
  <thead>
  <tr>
 	<th><input id="toggle" type="checkbox" value=""/></th>
	<th><?php echo $this->_tpl_vars['systemLang']['game']; ?>
</th>
	<th><?php echo $this->_tpl_vars['systemLang']['type']; ?>
</th>
        <th><?php echo $this->_tpl_vars['systemLang']['platform']; ?>
</th>
	<th><?php echo $this->_tpl_vars['systemLang']['pushTime']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['pushTimePoit']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['pushContent']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['pushCycle']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['userRange']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['operate']; ?>
</th>
  </tr>
  </thead>
  <tbody>
  <?php $_from = $this->_tpl_vars['pushs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a'] => $this->_tpl_vars['record']):
?>
  <tr class="row0">
    <td><input name="select_id[]" type="checkbox" class="checkbox" id="cb<?php echo $this->_tpl_vars['a']; ?>
" value="<?php echo $this->_tpl_vars['record']['push_id']; ?>
" /></td>
    <td><?php if ($this->_tpl_vars['games'][$this->_tpl_vars['record']['game_id']]):  echo $this->_tpl_vars['games'][$this->_tpl_vars['record']['game_id']];  else:  echo $this->_tpl_vars['systemLang']['platform'];  endif; ?></td>
    <td><?php echo $this->_tpl_vars['pushConfigs']['type'][$this->_tpl_vars['record']['type']]; ?>
</td>
    <td><?php echo $this->_tpl_vars['achieve']['platform']; ?>
</td>
    <td>
    	<?php if ($this->_tpl_vars['record']['start_time'] == 0 && $this->_tpl_vars['record']['end_time'] == 0): ?>
    	<?php echo $this->_tpl_vars['systemLang']['everyDay']; ?>

    	<?php elseif ($this->_tpl_vars['record']['start_time'] && $this->_tpl_vars['record']['end_time']): ?>
    	<?php echo ((is_array($_tmp=$this->_tpl_vars['record']['start_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d"));  echo $this->_tpl_vars['systemLang']['to'];  echo ((is_array($_tmp=$this->_tpl_vars['record']['end_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>

    	<?php elseif ($this->_tpl_vars['record']['start_time'] && $this->_tpl_vars['record']['end_time'] == 0): ?>
    	<?php echo ((is_array($_tmp=$this->_tpl_vars['record']['start_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
 <?php echo $this->_tpl_vars['systemLang']['to']; ?>
 ??
    	<?php else: ?>
    	?? <?php echo $this->_tpl_vars['systemLang']['to'];  echo ((is_array($_tmp=$this->_tpl_vars['record']['end_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>

    	<?php endif; ?>
    </td>
	<td><?php echo $this->_tpl_vars['record']['point_time']; ?>
</td>
    <td><?php echo $this->_tpl_vars['record']['content']; ?>
</td>
    <td><?php echo $this->_tpl_vars['pushConfigs']['cycle'][$this->_tpl_vars['record']['push_cycle']]; ?>
</td>
    <td><?php echo $this->_tpl_vars['pushConfigs']['range'][$this->_tpl_vars['record']['user_range']];  if ($this->_tpl_vars['record']['day_range']): ?>(<?php echo $this->_tpl_vars['record']['day_range']; ?>
)<?php endif; ?></td>
   	<td>
        <a href="<?php echo @BASEURI; ?>
push/edit/<?php echo $this->_tpl_vars['record']['push_id']; ?>
"><?php echo $this->_tpl_vars['systemLang']['edit']; ?>
 &nbsp;
        <a href="<?php echo @BASEURI; ?>
push/delete/<?php echo $this->_tpl_vars['record']['push_id']; ?>
" <?php echo @IS_DELETE; ?>
><?php echo $this->_tpl_vars['systemLang']['del']; ?>
</a>
    </td>
  </tr>
  <?php endforeach; endif; unset($_from); ?>
  </tbody>
  <tfoot>
  <tr>
    <td colspan="2">
    <input type="button"  value="<?php echo $this->_tpl_vars['systemLang']['add']; ?>
" onclick="button_location('<?php echo @BASEURI; ?>
push/add',false)" class="button"/>
    <input type="button"  value="<?php echo $this->_tpl_vars['systemLang']['del']; ?>
" onclick="select_control('<?php echo @BASEURI; ?>
push/delete','<?php echo $this->_tpl_vars['systemLang']['confirmDel']; ?>
')" class="button"/>
    </td>
	<td colspan="4"><?php echo $this->_tpl_vars['page']; ?>
</td>
  </tr>
  </tfoot>
</table>
</form>
<script>
function getSelectedValue(name){
var obj=document.getElementById(name);
return obj.value;      //直接用其对象的value属性便可获取到
}
function abc(url,a,c){
	ab=getSelectedValue(a);
	//bc=getSelectedValue(b);
	ca=getSelectedValue(c);
	window.location=url+'/'+ab+'/'+ca;
}
</script>